package gui.snake;

import javax.swing.*;
import java.net.URL;

public class DataCenter {
    public static URL headerUrl = DataCenter.class.getResource("statics/header.png");
    public static URL bodyUrl = DataCenter.class.getResource("statics/body.png");
    public static URL foodUrl = DataCenter.class.getResource("statics/food.png");
    public static URL upUrl = DataCenter.class.getResource("statics/up.png");
    public static URL downUrl = DataCenter.class.getResource("statics/down.png");
    public static URL leftUrl = DataCenter.class.getResource("statics/left.png");
    public static URL rightUrl = DataCenter.class.getResource("statics/right.png");

//    public static String headerUrl = "E:\\new PC\\study\\java学习\\code\\JavaSE\\基础语法\\src\\gui\\snake\\statics\\header.png";

    public static ImageIcon header = new ImageIcon(headerUrl);
    public static ImageIcon body = new ImageIcon(bodyUrl);
    public static ImageIcon food = new ImageIcon(foodUrl);
    public static ImageIcon up = new ImageIcon(upUrl);
    public static ImageIcon down = new ImageIcon(downUrl);
    public static ImageIcon left = new ImageIcon(leftUrl);
    public static ImageIcon right = new ImageIcon(rightUrl);
}
